<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/simbody/state_engine.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_a229ef5dde7e92705d3b5edc903688f9.html">simbody</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">state_engine.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="state__engine_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;base_data_package.h&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="array_8h.html">array.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="exception_8h.html">exception.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="all__simbody_8h.html">all_simbody.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;cstdio&gt;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="preprocessor">#include &quot;Simbody.h&quot;</span></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#include &quot;SimTKmath.h&quot;</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &quot;SimTKcommon.h&quot;</span></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#include &quot;simbody/internal/MultibodySystem.h&quot;</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a> {</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html">   57</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_state_engine.html">StateEngine</a>{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="comment">//===============================================================//</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="comment">// PROTECTED</span></div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="comment">//===============================================================//</span></div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">   69</a></span>&#160;        <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateVariable</a>{</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;           <span class="comment">//friend void StateEngine::addStateVariable(StateVariable* sv);</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a2d41a4902b7b2390e46a3a4cffc545e2">   73</a></span>&#160;            <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a2d41a4902b7b2390e46a3a4cffc545e2">StateVariable</a>() :name_(<span class="stringliteral">&quot;&quot;</span>), owner_(nullptr),</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;                subsysindex_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex), </div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                varindex_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex),</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                sysyindex_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex) {}</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6a5991917224e433bb6fc78d5c60117c">   77</a></span>&#160;            <span class="keyword">explicit</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6a5991917224e433bb6fc78d5c60117c">StateVariable</a>(std::string&amp; name,    </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                        <a class="code" href="class_s_p_h_1_1_state_engine.html">StateEngine</a>&amp; owner,                    </div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                        SimTK::SubsystemIndex subsys,          </div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;                        <span class="keywordtype">int</span> varindex)                          </div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;                    : name_(name),owner_(&amp;owner),subsysindex_(subsys), </div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;                    varindex_(varindex),sysyindex_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex){}</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateVariable</a>() {}</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;            std::string&amp; getName(){ <span class="keywordflow">return</span> name_; }</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <a class="code" href="class_s_p_h_1_1_state_engine.html#a3a1f66b723c39a927bbe15c080ed34b0">StateEngine</a>&amp; getOwner(){ <span class="keywordflow">return</span> *owner_; }</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a257b7931903872ecbb33169c0c55ecff">   88</a></span>&#160;            <span class="keywordtype">int</span>&amp; <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a257b7931903872ecbb33169c0c55ecff">getVarIndex</a>(){ <span class="keywordflow">return</span> varindex_; }</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#aaabc2de09769911c1976c0c4f219a9f5">   90</a></span>&#160;            SimTK::SubsystemIndex&amp; <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#aaabc2de09769911c1976c0c4f219a9f5">getSubsysIndex</a>() { <span class="keywordflow">return</span> subsysindex_; }</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6f3b85d255fad9a5ffde8f505ad39d5e">   92</a></span>&#160;            SimTK::SystemYIndex&amp; <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6f3b85d255fad9a5ffde8f505ad39d5e">getSystemYIndex</a>() { <span class="keywordflow">return</span> sysyindex_; }</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a8bc2546454638b0775eb8d712c45b7ab">   94</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a8bc2546454638b0775eb8d712c45b7ab">setVarIndex</a>(<span class="keywordtype">int</span> index) { varindex_ = index; }</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a4d31c2917b8ba7ff3788be0b889950a2">   96</a></span>&#160;            <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a4d31c2917b8ba7ff3788be0b889950a2">setSubsystemIndex</a>(SimTK::SubsystemIndex&amp; subsysindx) </div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            {</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;                subsysindex_ = subsysindx;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            }</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            <span class="keyword">virtual</span> Real <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a559cf846fd352572efdc12f6e3a4428c">getValue</a>() = 0;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">void</span> setValue( Real value) = 0;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <span class="keyword">virtual</span> Real getDerivative() = 0;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a2d62b3cad319eadaf19e6d0bb15da53e">setDerivative</a>(Real deriv) = 0;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <span class="keyword">private</span>:</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            std::string name_;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            SimTK::ReferencePtr&lt;StateEngine&gt; owner_;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            SimTK::SubsystemIndex subsysindex_;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;            <span class="keywordtype">int</span>  varindex_;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            SimTK::SystemYIndex sysyindex_;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        };</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="comment">//===============================================================//</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    <span class="comment">// PRIVATE</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <span class="comment">//===============================================================//</span></div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html">  132</a></span>&#160;<span class="comment"></span>        <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html">AddedStateVariable</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateVariable</a> {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a5122a8075367eccb977b281f94b4f5dc">  135</a></span>&#160;            <a class="code" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a5122a8075367eccb977b281f94b4f5dc">AddedStateVariable</a>() : <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateVariable</a>(), invalidatestage_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::Stage::Empty){}</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#afa88ca53417aa1e4470b8b65c1f6c733">  138</a></span>&#160;            <span class="keyword">explicit</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#afa88ca53417aa1e4470b8b65c1f6c733">AddedStateVariable</a>(std::string&amp; name,     </div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                        <a class="code" href="class_s_p_h_1_1_state_engine.html">StateEngine</a>&amp; owner,</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                        SimTK::Stage invalidatestage):              </div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                <a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateVariable</a>(name,owner,</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                        <a class="code" href="namespace_sim_t_k.html">SimTK</a>::SubsystemIndex(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex),</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                        <a class="code" href="namespace_sim_t_k.html">SimTK</a>::InvalidIndex), </div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                        invalidatestage_(<a class="code" href="namespace_sim_t_k.html">SimTK</a>::Stage::Empty) {}</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            Real <a class="code" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a993eab162a075588c8729814d66cf5cf">getValue</a>() <span class="keyword">override</span>;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            <span class="keywordtype">void</span> setValue(Real value) <span class="keyword">override</span>;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            Real getDerivative() <span class="keyword">override</span>;</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a6c6431798f4fa0e822b31af63733c174">setDerivative</a>(Real deriv) <span class="keyword">override</span>;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="keyword">private</span>:</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;            SimTK::Stage    invalidatestage_;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;        }; </div><div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">  163</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a> {</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>() {}</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;            <span class="keyword">explicit</span> <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>(<a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateEngine::StateVariable</a>* sv, <span class="keywordtype">int</span> order) :</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            statevariable_(sv), order(order) {}</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aba4fa2b0925b85e8cb4b1aae7fbfc586">  170</a></span>&#160;            <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aba4fa2b0925b85e8cb4b1aae7fbfc586">StateVariableInfo</a>(<span class="keyword">const</span> <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>&amp;) {}</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aada2890308ac32241cafcbee3079ad66">  172</a></span>&#160;            <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>&amp; <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aada2890308ac32241cafcbee3079ad66">operator=</a>(<span class="keyword">const</span> <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>&amp; svi) {</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                <span class="keywordflow">if</span>(<span class="keyword">this</span> != &amp;svi){</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;                    <a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a>* mutableSvi = <span class="keyword">const_cast&lt;</span><a class="code" href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">StateVariableInfo</a> *<span class="keyword">&gt;</span>(&amp;svi);</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;                    statevariable_.swap(mutableSvi-&gt;statevariable_);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                }</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;                order = svi.order;</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;                <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            }</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <span class="comment">// State variable</span></div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            std::unique_ptr&lt;StateEngine::StateVariable&gt; statevariable_;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;            <span class="comment">// order of allocation</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="keywordtype">int</span> order;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        };</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    <span class="comment">//===============================================================//</span></div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="comment">// PULIC</span></div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="comment">//===============================================================//       </span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ac170610813f82b2bcbc61d5bd5d9a361">addStateVariable</a>(std::string  statevariablename,</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                SimTK::Stage invalidatestage);</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ac170610813f82b2bcbc61d5bd5d9a361">addStateVariable</a>(<a class="code" href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">StateEngine::StateVariable</a>*  statevariable);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        <span class="comment">//===========================================================//</span></div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        SimTK::DefaultSystemSubsystem&amp; getDefaultSubsystem()</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        {   </div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>SimTK::DefaultSystemSubsystem&amp;<span class="keyword">&gt;</span></div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                        (<a class="code" href="class_s_p_h_1_1_state_engine.html#a40116a6deb763c4e1097567eefe337d5">getMultibodySystem</a>().getDefaultSubsystem()); </div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        }</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        SimTK::DefaultSystemSubsystem&amp; updDefaultSubsystem()</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        {   </div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#a40116a6deb763c4e1097567eefe337d5">getMultibodySystem</a>().updDefaultSubsystem(); </div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        }</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <span class="comment">//===========================================================//</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;<span class="comment"></span>        StateVariable* <a class="code" href="class_s_p_h_1_1_state_engine.html#a641ee0d249be03f2d736491d26e30b31">traverseToStateVariable</a>(std::string&amp; pathname);</div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#a027283fd00cf73fe956846d2023858ae">  252</a></span>&#160;        <span class="keyword">mutable</span> std::map&lt;std::string, StateVariableInfo&gt; <a class="code" href="class_s_p_h_1_1_state_engine.html#a027283fd00cf73fe956846d2023858ae">namedstatevariableinfo_</a>;</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#a591831bee2ebf4824de2d1aa9c14a130">isAllStatesVariablesListValid</a>();</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        <span class="keyword">mutable</span> SimTK::Array_&lt;SimTK::ReferencePtr&lt;StateVariable&gt; &gt; </div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#a0d5aa02c961eea6c1f0b026ea78a842e">  258</a></span>&#160;                                                            <a class="code" href="class_s_p_h_1_1_state_engine.html#a0d5aa02c961eea6c1f0b026ea78a842e">allstatevariables_</a>;</div><div class="line"><a name="l00260"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#ad0bd04394577980e3da56abd62ffc4b9">  260</a></span>&#160;        <span class="keyword">mutable</span> SimTK::ReferencePtr&lt;SimTK::System&gt; <a class="code" href="class_s_p_h_1_1_state_engine.html#ad0bd04394577980e3da56abd62ffc4b9">statesassociatedsystem_</a>;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        <a class="code" href="class_s_p_h_1_1_state_engine.html#a3a1f66b723c39a927bbe15c080ed34b0">StateEngine</a>(SimTK::MultibodySystem&amp; system);</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#aff3e9eb19aa13cf64795a0d2d4902c8a">  266</a></span>&#160;        SimTK::ReferencePtr&lt;SimTK::MultibodySystem&gt; <a class="code" href="class_s_p_h_1_1_state_engine.html#aff3e9eb19aa13cf64795a0d2d4902c8a">mbsystem_</a>;</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#a2955767698012d3e8e3fc0abac4367ff">  271</a></span>&#160;        SimTK::State <a class="code" href="class_s_p_h_1_1_state_engine.html#a2955767698012d3e8e3fc0abac4367ff">working_state_</a>;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#ab5462e5b2a0af58c3e3a2da57d3b3e6d">  274</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ab5462e5b2a0af58c3e3a2da57d3b3e6d">~StateEngine</a>(){};</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#aa8260627c299e94deed6936cbe93b34a">InitializeState</a>();</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        SimTK::MultibodySystem&amp; <a class="code" href="class_s_p_h_1_1_state_engine.html#a40116a6deb763c4e1097567eefe337d5">getMultibodySystem</a>();</div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;        SimTK::MultibodySystem&amp; <a class="code" href="class_s_p_h_1_1_state_engine.html#a35cdaa085bd64b45d03f8cfa0362d221">updMultibodySystem</a>();</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ae56518dd62545844d873785bbb940f9a">getNumOfStateVariables</a>();</div><div class="line"><a name="l00296"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#aab9d432fc3e7f7d78c90ada278210c53">  296</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#aab9d432fc3e7f7d78c90ada278210c53">getNumStateVariablesAddedByEngine</a>() </div><div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;        { </div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            <span class="keywordflow">return</span> (<span class="keywordtype">int</span>)<a class="code" href="class_s_p_h_1_1_state_engine.html#a027283fd00cf73fe956846d2023858ae">namedstatevariableinfo_</a>.size(); </div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        }</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;        <a class="code" href="class_s_p_h_1_1_array.html">Array&lt;std::string&gt;</a> <a class="code" href="class_s_p_h_1_1_state_engine.html#a0af58325ea42c683d84d0014bf3d6717">getStateVariableNames</a>();</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        SimTK::Vector <a class="code" href="class_s_p_h_1_1_state_engine.html#afce79f4008df22a52afbcefb3d5f651a">getStateVariableValues</a>();</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#a0ac69f512e683b7ae7b3c35472c054ca">reporter</a>(SimTK::State&amp; state_);</div><div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_state_engine.html#a8c2396e0bb705a153bfee70b6ceb018b">  324</a></span>&#160;        std::string <a class="code" href="class_s_p_h_1_1_state_engine.html#a8c2396e0bb705a153bfee70b6ceb018b">restart_folder_</a>;</div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        <span class="keywordtype">void</span> writeStateInfoToXml(<span class="keywordtype">int</span> ite_rst_, <span class="keyword">const</span> SimTK::State&amp; state_);</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;        SimTK::State <a class="code" href="class_s_p_h_1_1_state_engine.html#a6b182432a7d8f66b8b03c3d06a2dfaf5">readAndSetStateInfoFromXml</a>(<span class="keywordtype">int</span> ite_rst_, SimTK::MultibodySystem&amp; system_);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ab35384b5b1212dad64281acdd9641b7a">realizeTime</a>( );</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#abc3ea288e843ac3490b718fc42245b6f">realizePosition</a>();</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ae599650ca1a77f91f0fa3f981d9b5a27">realizeVelocity</a>( );</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#ac2b830d11e5ec1595ca9e4e8130d08eb">realizeDynamics</a>( );</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#a33c923e5c533918756a00dae52eea33a">realizeAcceleration</a>();</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_state_engine.html#a74d99f0f0c709f06b3ecd3c0648e4c57">realizeReport</a>();</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;    };</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;}</div><div class="ttc" id="class_s_p_h_1_1_state_engine_html_a591831bee2ebf4824de2d1aa9c14a130"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a591831bee2ebf4824de2d1aa9c14a130">SPH::StateEngine::isAllStatesVariablesListValid</a></div><div class="ttdeci">bool isAllStatesVariablesListValid()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:125</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a8bc2546454638b0775eb8d712c45b7ab"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a8bc2546454638b0775eb8d712c45b7ab">SPH::StateEngine::StateVariable::setVarIndex</a></div><div class="ttdeci">void setVarIndex(int index)</div><div class="ttdef"><b>Definition:</b> state_engine.h:94</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a257b7931903872ecbb33169c0c55ecff"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a257b7931903872ecbb33169c0c55ecff">SPH::StateEngine::StateVariable::getVarIndex</a></div><div class="ttdeci">int &amp; getVarIndex()</div><div class="ttdef"><b>Definition:</b> state_engine.h:88</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_abc3ea288e843ac3490b718fc42245b6f"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#abc3ea288e843ac3490b718fc42245b6f">SPH::StateEngine::realizePosition</a></div><div class="ttdeci">void realizePosition()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:325</div></div>
<div class="ttc" id="class_s_p_h_1_1_array_html"><div class="ttname"><a href="class_s_p_h_1_1_array.html">SPH::Array</a></div><div class="ttdef"><b>Definition:</b> array.h:27</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a641ee0d249be03f2d736491d26e30b31"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a641ee0d249be03f2d736491d26e30b31">SPH::StateEngine::traverseToStateVariable</a></div><div class="ttdeci">StateVariable * traverseToStateVariable(std::string &amp;pathname)</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:96</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_added_state_variable_html_a5122a8075367eccb977b281f94b4f5dc"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a5122a8075367eccb977b281f94b4f5dc">SPH::StateEngine::AddedStateVariable::AddedStateVariable</a></div><div class="ttdeci">AddedStateVariable()</div><div class="ttdef"><b>Definition:</b> state_engine.h:135</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_aaabc2de09769911c1976c0c4f219a9f5"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#aaabc2de09769911c1976c0c4f219a9f5">SPH::StateEngine::StateVariable::getSubsysIndex</a></div><div class="ttdeci">SimTK::SubsystemIndex &amp; getSubsysIndex()</div><div class="ttdef"><b>Definition:</b> state_engine.h:90</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_aff3e9eb19aa13cf64795a0d2d4902c8a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#aff3e9eb19aa13cf64795a0d2d4902c8a">SPH::StateEngine::mbsystem_</a></div><div class="ttdeci">SimTK::ReferencePtr&lt; SimTK::MultibodySystem &gt; mbsystem_</div><div class="ttdef"><b>Definition:</b> state_engine.h:266</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a3a1f66b723c39a927bbe15c080ed34b0"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a3a1f66b723c39a927bbe15c080ed34b0">SPH::StateEngine::StateEngine</a></div><div class="ttdeci">StateEngine(SimTK::MultibodySystem &amp;system)</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:13</div></div>
<div class="ttc" id="struct_s_p_h_1_1_state_engine_1_1_state_variable_info_html_aba4fa2b0925b85e8cb4b1aae7fbfc586"><div class="ttname"><a href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aba4fa2b0925b85e8cb4b1aae7fbfc586">SPH::StateEngine::StateVariableInfo::StateVariableInfo</a></div><div class="ttdeci">StateVariableInfo(const StateVariableInfo &amp;)</div><div class="ttdef"><b>Definition:</b> state_engine.h:170</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ae599650ca1a77f91f0fa3f981d9b5a27"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ae599650ca1a77f91f0fa3f981d9b5a27">SPH::StateEngine::realizeVelocity</a></div><div class="ttdeci">void realizeVelocity()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:330</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ab35384b5b1212dad64281acdd9641b7a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ab35384b5b1212dad64281acdd9641b7a">SPH::StateEngine::realizeTime</a></div><div class="ttdeci">void realizeTime()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:320</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a33c923e5c533918756a00dae52eea33a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a33c923e5c533918756a00dae52eea33a">SPH::StateEngine::realizeAcceleration</a></div><div class="ttdeci">void realizeAcceleration()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:340</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a4d31c2917b8ba7ff3788be0b889950a2"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a4d31c2917b8ba7ff3788be0b889950a2">SPH::StateEngine::StateVariable::setSubsystemIndex</a></div><div class="ttdeci">void setSubsystemIndex(SimTK::SubsystemIndex &amp;subsysindx)</div><div class="ttdef"><b>Definition:</b> state_engine.h:96</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a2d41a4902b7b2390e46a3a4cffc545e2"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a2d41a4902b7b2390e46a3a4cffc545e2">SPH::StateEngine::StateVariable::StateVariable</a></div><div class="ttdeci">StateVariable()</div><div class="ttdef"><b>Definition:</b> state_engine.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a559cf846fd352572efdc12f6e3a4428c"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a559cf846fd352572efdc12f6e3a4428c">SPH::StateEngine::StateVariable::getValue</a></div><div class="ttdeci">virtual Real getValue()=0</div></div>
<div class="ttc" id="namespace_sim_t_k_html"><div class="ttname"><a href="namespace_sim_t_k.html">SimTK</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a6f3b85d255fad9a5ffde8f505ad39d5e"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6f3b85d255fad9a5ffde8f505ad39d5e">SPH::StateEngine::StateVariable::getSystemYIndex</a></div><div class="ttdeci">SimTK::SystemYIndex &amp; getSystemYIndex()</div><div class="ttdef"><b>Definition:</b> state_engine.h:92</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a35cdaa085bd64b45d03f8cfa0362d221"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a35cdaa085bd64b45d03f8cfa0362d221">SPH::StateEngine::updMultibodySystem</a></div><div class="ttdeci">SimTK::MultibodySystem &amp; updMultibodySystem()</div></div>
<div class="ttc" id="exception_8h_html"><div class="ttname"><a href="exception_8h.html">exception.h</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a2d62b3cad319eadaf19e6d0bb15da53e"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a2d62b3cad319eadaf19e6d0bb15da53e">SPH::StateEngine::StateVariable::setDerivative</a></div><div class="ttdeci">virtual void setDerivative(Real deriv)=0</div></div>
<div class="ttc" id="struct_s_p_h_1_1_state_engine_1_1_state_variable_info_html"><div class="ttname"><a href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html">SPH::StateEngine::StateVariableInfo</a></div><div class="ttdef"><b>Definition:</b> state_engine.h:163</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a0ac69f512e683b7ae7b3c35472c054ca"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a0ac69f512e683b7ae7b3c35472c054ca">SPH::StateEngine::reporter</a></div><div class="ttdeci">void reporter(SimTK::State &amp;state_)</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:209</div></div>
<div class="ttc" id="array_8h_html"><div class="ttname"><a href="array_8h.html">array.h</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ab5462e5b2a0af58c3e3a2da57d3b3e6d"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ab5462e5b2a0af58c3e3a2da57d3b3e6d">SPH::StateEngine::~StateEngine</a></div><div class="ttdeci">virtual ~StateEngine()</div><div class="ttdef"><b>Definition:</b> state_engine.h:274</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ac170610813f82b2bcbc61d5bd5d9a361"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ac170610813f82b2bcbc61d5bd5d9a361">SPH::StateEngine::addStateVariable</a></div><div class="ttdeci">void addStateVariable(std::string statevariablename, SimTK::Stage invalidatestage)</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:53</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_added_state_variable_html_a993eab162a075588c8729814d66cf5cf"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a993eab162a075588c8729814d66cf5cf">SPH::StateEngine::AddedStateVariable::getValue</a></div><div class="ttdeci">Real getValue() override</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:166</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a0af58325ea42c683d84d0014bf3d6717"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a0af58325ea42c683d84d0014bf3d6717">SPH::StateEngine::getStateVariableNames</a></div><div class="ttdeci">Array&lt; std::string &gt; getStateVariableNames()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:105</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_added_state_variable_html"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html">SPH::StateEngine::AddedStateVariable</a></div><div class="ttdoc">Class for handling state variable added (allocated) by this StateEngine. </div><div class="ttdef"><b>Definition:</b> state_engine.h:132</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_added_state_variable_html_a6c6431798f4fa0e822b31af63733c174"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#a6c6431798f4fa0e822b31af63733c174">SPH::StateEngine::AddedStateVariable::setDerivative</a></div><div class="ttdeci">void setDerivative(Real deriv) override</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:204</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_added_state_variable_html_afa88ca53417aa1e4470b8b65c1f6c733"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_added_state_variable.html#afa88ca53417aa1e4470b8b65c1f6c733">SPH::StateEngine::AddedStateVariable::AddedStateVariable</a></div><div class="ttdeci">AddedStateVariable(std::string &amp;name, StateEngine &amp;owner, SimTK::Stage invalidatestage)</div><div class="ttdef"><b>Definition:</b> state_engine.h:138</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a74d99f0f0c709f06b3ecd3c0648e4c57"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a74d99f0f0c709f06b3ecd3c0648e4c57">SPH::StateEngine::realizeReport</a></div><div class="ttdeci">void realizeReport()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:345</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html">SPH::StateEngine::StateVariable</a></div><div class="ttdef"><b>Definition:</b> state_engine.h:69</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_aa8260627c299e94deed6936cbe93b34a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#aa8260627c299e94deed6936cbe93b34a">SPH::StateEngine::InitializeState</a></div><div class="ttdeci">void InitializeState()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:23</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a0d5aa02c961eea6c1f0b026ea78a842e"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a0d5aa02c961eea6c1f0b026ea78a842e">SPH::StateEngine::allstatevariables_</a></div><div class="ttdeci">SimTK::Array_&lt; SimTK::ReferencePtr&lt; StateVariable &gt; &gt; allstatevariables_</div><div class="ttdef"><b>Definition:</b> state_engine.h:258</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a027283fd00cf73fe956846d2023858ae"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a027283fd00cf73fe956846d2023858ae">SPH::StateEngine::namedstatevariableinfo_</a></div><div class="ttdeci">std::map&lt; std::string, StateVariableInfo &gt; namedstatevariableinfo_</div><div class="ttdef"><b>Definition:</b> state_engine.h:252</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ad0bd04394577980e3da56abd62ffc4b9"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ad0bd04394577980e3da56abd62ffc4b9">SPH::StateEngine::statesassociatedsystem_</a></div><div class="ttdeci">SimTK::ReferencePtr&lt; SimTK::System &gt; statesassociatedsystem_</div><div class="ttdef"><b>Definition:</b> state_engine.h:260</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ac2b830d11e5ec1595ca9e4e8130d08eb"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ac2b830d11e5ec1595ca9e4e8130d08eb">SPH::StateEngine::realizeDynamics</a></div><div class="ttdeci">void realizeDynamics()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:335</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a8c2396e0bb705a153bfee70b6ceb018b"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a8c2396e0bb705a153bfee70b6ceb018b">SPH::StateEngine::restart_folder_</a></div><div class="ttdeci">std::string restart_folder_</div><div class="ttdef"><b>Definition:</b> state_engine.h:324</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_1_1_state_variable_html_a6a5991917224e433bb6fc78d5c60117c"><div class="ttname"><a href="class_s_p_h_1_1_state_engine_1_1_state_variable.html#a6a5991917224e433bb6fc78d5c60117c">SPH::StateEngine::StateVariable::StateVariable</a></div><div class="ttdeci">StateVariable(std::string &amp;name, StateEngine &amp;owner, SimTK::SubsystemIndex subsys, int varindex)</div><div class="ttdef"><b>Definition:</b> state_engine.h:77</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a2955767698012d3e8e3fc0abac4367ff"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a2955767698012d3e8e3fc0abac4367ff">SPH::StateEngine::working_state_</a></div><div class="ttdeci">SimTK::State working_state_</div><div class="ttdef"><b>Definition:</b> state_engine.h:271</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_afce79f4008df22a52afbcefb3d5f651a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#afce79f4008df22a52afbcefb3d5f651a">SPH::StateEngine::getStateVariableValues</a></div><div class="ttdeci">SimTK::Vector getStateVariableValues()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:141</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_aab9d432fc3e7f7d78c90ada278210c53"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#aab9d432fc3e7f7d78c90ada278210c53">SPH::StateEngine::getNumStateVariablesAddedByEngine</a></div><div class="ttdeci">int getNumStateVariablesAddedByEngine()</div><div class="ttdef"><b>Definition:</b> state_engine.h:296</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a40116a6deb763c4e1097567eefe337d5"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a40116a6deb763c4e1097567eefe337d5">SPH::StateEngine::getMultibodySystem</a></div><div class="ttdeci">SimTK::MultibodySystem &amp; getMultibodySystem()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:48</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_ae56518dd62545844d873785bbb940f9a"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#ae56518dd62545844d873785bbb940f9a">SPH::StateEngine::getNumOfStateVariables</a></div><div class="ttdeci">int getNumOfStateVariables()</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:120</div></div>
<div class="ttc" id="struct_s_p_h_1_1_state_engine_1_1_state_variable_info_html_aada2890308ac32241cafcbee3079ad66"><div class="ttname"><a href="struct_s_p_h_1_1_state_engine_1_1_state_variable_info.html#aada2890308ac32241cafcbee3079ad66">SPH::StateEngine::StateVariableInfo::operator=</a></div><div class="ttdeci">StateVariableInfo &amp; operator=(const StateVariableInfo &amp;svi)</div><div class="ttdef"><b>Definition:</b> state_engine.h:172</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html_a6b182432a7d8f66b8b03c3d06a2dfaf5"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html#a6b182432a7d8f66b8b03c3d06a2dfaf5">SPH::StateEngine::readAndSetStateInfoFromXml</a></div><div class="ttdeci">SimTK::State readAndSetStateInfoFromXml(int ite_rst_, SimTK::MultibodySystem &amp;system_)</div><div class="ttdef"><b>Definition:</b> state_engine.cpp:268</div></div>
<div class="ttc" id="all__simbody_8h_html"><div class="ttname"><a href="all__simbody_8h.html">all_simbody.h</a></div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
<div class="ttc" id="class_s_p_h_1_1_state_engine_html"><div class="ttname"><a href="class_s_p_h_1_1_state_engine.html">SPH::StateEngine</a></div><div class="ttdef"><b>Definition:</b> state_engine.h:57</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
